package mylibrary.comet;

import java.io.OutputStreamWriter;
import java.net.ServerSocket;
import java.net.Socket;

public class CometTest {

	static ServerSocket server = null;
	static OutputStreamWriter os = null;

	public static void main(String[] args) {
		String a = "11";

		byte[] cc = { 11, 23, 47 };

		cc.toString();

		//System.out.println(new String(cc));

		String bb = new String(cc);
		bb.getBytes();
		// System.out.println(bb.getBytes());

		for (byte c : bb.getBytes()) {
			//System.out.println(c);
		}

		
	}

	
	
	public static String ToHexString(byte[] bytes) // 0xae00cf => "AE00CF "
	{
		String hexString = "";
		if (bytes != null) {
			StringBuilder strB = new StringBuilder();

			for (int i = 0; i < bytes.length; i++) {
				strB.append(String.valueOf(bytes[i]));
			}
			hexString = strB.toString();
		}
		return hexString;
	}
}
